package com.health.service;

import com.health.entity.PageResult;
import com.health.entity.QueryPageBean;
import com.health.entity.Result;
import com.health.pojo.User;

import java.util.List;

/**
 * @Classname UserService
 * @Description TODO
 * @Version 1.0.0
 * @Date 2023/3/17 8:23
 * @Author RainGrd
 */
public interface UserService {
    User queryByUserName(String userName);

    PageResult queryUserPage(QueryPageBean queryPageBean);

    Result saveUser(User user, Integer[] roleIds);

    Result editUserByRoles(User user, Integer[] roleIds);

    List<Integer> queryRoleIdsByUserId(Integer userId);

    Result clearUser(Integer id);


    Result queryUserRoleAll();

    Result editUserPassword(User user);

    Result editUserFlag(User user);
}
